﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace test_c_sharp
{
    /// <summary>
    /// The Doodad class
    /// </summary>
    class Doodad
    {
        #region properties
        public string Name { get; protected set; }
        public Rectangle Bounds { get; protected set; }
        public Texture2D Texture { get; protected set; }
        #endregion

        #region initialization
        public Doodad(String name, Rectangle bounds, Texture2D texture)
        {
            this.Name = name;
            this.Bounds = bounds; 
            this.Texture = texture;
        }

        public void SetBounds(Rectangle bounds)
        {
            this.Bounds = bounds;
        }
        #endregion

        #region methods
        public void Draw(SpriteBatch spritebatch)
        {
            spritebatch.Draw(Texture, Bounds, Color.White);
        }
        #endregion

    }
}
